package pe.com.bn.sach.domain;

/**
 * Bnchf54ParamTarifarioPagoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf54ParamTarifarioPagoId implements java.io.Serializable {

	// Fields

	private Bnchf14CentroHipotecario bnchf14CentroHipotecario;
	private Bnchf32Tramite bnchf32Tramite;
	private Long f54IdAgente;

	// Constructors

	/** default constructor */
	public Bnchf54ParamTarifarioPagoId() {
	}

	/** full constructor */
	public Bnchf54ParamTarifarioPagoId(
			Bnchf14CentroHipotecario bnchf14CentroHipotecario,
			Bnchf32Tramite bnchf32Tramite, Long f54IdAgente) {
		this.bnchf14CentroHipotecario = bnchf14CentroHipotecario;
		this.bnchf32Tramite = bnchf32Tramite;
		this.f54IdAgente = f54IdAgente;
	}

	// Property accessors

	public Bnchf14CentroHipotecario getBnchf14CentroHipotecario() {
		return this.bnchf14CentroHipotecario;
	}

	public void setBnchf14CentroHipotecario(
			Bnchf14CentroHipotecario bnchf14CentroHipotecario) {
		this.bnchf14CentroHipotecario = bnchf14CentroHipotecario;
	}

	public Bnchf32Tramite getBnchf32Tramite() {
		return this.bnchf32Tramite;
	}

	public void setBnchf32Tramite(Bnchf32Tramite bnchf32Tramite) {
		this.bnchf32Tramite = bnchf32Tramite;
	}

	public Long getF54IdAgente() {
		return this.f54IdAgente;
	}

	public void setF54IdAgente(Long f54IdAgente) {
		this.f54IdAgente = f54IdAgente;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf54ParamTarifarioPagoId))
			return false;
		Bnchf54ParamTarifarioPagoId castOther = (Bnchf54ParamTarifarioPagoId) other;

		return ((this.getBnchf14CentroHipotecario() == castOther
				.getBnchf14CentroHipotecario()) || (this
				.getBnchf14CentroHipotecario() != null
				&& castOther.getBnchf14CentroHipotecario() != null && this
				.getBnchf14CentroHipotecario().equals(
						castOther.getBnchf14CentroHipotecario())))
				&& ((this.getBnchf32Tramite() == castOther.getBnchf32Tramite()) || (this
						.getBnchf32Tramite() != null
						&& castOther.getBnchf32Tramite() != null && this
						.getBnchf32Tramite().equals(
								castOther.getBnchf32Tramite())))
				&& ((this.getF54IdAgente() == castOther.getF54IdAgente()) || (this
						.getF54IdAgente() != null
						&& castOther.getF54IdAgente() != null && this
						.getF54IdAgente().equals(castOther.getF54IdAgente())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf14CentroHipotecario() == null ? 0 : this
						.getBnchf14CentroHipotecario().hashCode());
		result = 37
				* result
				+ (getBnchf32Tramite() == null ? 0 : this.getBnchf32Tramite()
						.hashCode());
		result = 37
				* result
				+ (getF54IdAgente() == null ? 0 : this.getF54IdAgente()
						.hashCode());
		return result;
	}

}